# dictoionary字典
import operator

dict = {'Name': 'Zara', 'Age': 7, 'Name': 'Manni'}
print(dict['Name'])

dict['school'] = "qin"
print(dict)

dict1 = {'Name': 'Zara', 'Age': 7, 'Name': 'Manni'}
# 比较两个字典是否一致
print(operator.eq(dict, dict1))

# 遍历字典元素
for key, value in dict.items():
    print(key, value)
